<script setup>
import emitter from '../libs/bus.js'
let str = ref('hello')
const btn = ()=>{
    emitter.emit('btn',str.value)
}
</script>

<template>
    <div>
        <h1>sss</h1>
        <button @click="btn">按钮</button>
    </div>
</template>

<style scope>

</style>
